Skip to content

HDDS-15301. Malformed PutBlock request can mark container UNHEALTHY#10295

Merged
adoroszlai merged 2 commits into
apache:masterfrom
peterxcli:dont-make-container-unhealthy-with-malform-request
May 19, 2026
Merged

HDDS-15301. Malformed PutBlock request can mark container UNHEALTHY#10295
adoroszlai merged 2 commits into
apache:masterfrom
peterxcli:dont-make-container-unhealthy-with-malform-request

Conversation

@peterxcli
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

A malformed client PutBlock request can cause the datanode to mark the target container UNHEALTHY. The request should be rejected as a client-side malformed request, but currently it is mapped to IO_EXCEPTION, which HddsDispatcher treats as a container write failure.

This means a bad/misbehaving client can poison the active container and close the pipeline.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15301

How was this patch tested?

Unit test

Signed-off-by: peterxcli <peterxcli@gmail.com>
@peterxcli peterxcli requested review from adoroszlai and szetszwo May 17, 2026 11:04
Copy link
Copy Markdown
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: peterxcli <peterxcli@gmail.com>
Copy link
Copy Markdown
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@adoroszlai adoroszlai merged commit 45aa103 into apache:master May 19, 2026
47 checks passed
@adoroszlai
Copy link
Copy Markdown
Contributor

Thanks @peterxcli for the patch, @jojochuang, @szetszwo for the review.

@peterxcli peterxcli deleted the dont-make-container-unhealthy-with-malform-request branch May 19, 2026 11:47
@peterxcli
Copy link
Copy Markdown
Member Author

Thanks @adoroszlai, @szetszwo, @jojochuang for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants